package com.example.sprintboot.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("product")
public class Product {
    @TableId(value = "product_id",type = IdType.AUTO)
    private Integer productId;
    @TableField("category_id")
    private Integer categoryId;
    @TableField("seller_id")
    private Integer sellerId;
    private String name;
    private BigDecimal price;
    private Integer stock;
    private Integer sales;
    @EnumValue
    private ProductStatus status;
    @TableField("main_image")
    private String mainImage;
    private String description;
    @TableField("is_banner")
    private Boolean isBanner;
    @TableField("create_time")
    private LocalDateTime createdTime;
    @TableField("update_time")
    private LocalDateTime updatedTime;

    public Integer getSales() {
        return sales;
    }
    public void setSales(Integer sales) {
        this.sales = sales;
    }
}
